<?php
$debugCheckout = false;
// Include e107 class, Header and the e107shop classes
require("../../class2.php");
require("library/api.php");
require_once(e_HANDLER."np_class.php");
require(HEADERF);

e107shop_display_custom_page_info(e_PAGE, "top");

if($shop_settings['customer_must_be_member'] == "yes" && !USER){
    include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_login.php");
    require('../../login.php');
} else {
    // If you are admin and debug is on, then spill out the $_REQUEST values
    if (ADMIN && $debugCheckout) $ns->tablerender("Debug Information", print_a($_REQUEST, true));
    // Display the checkout details
    $ns->tablerender(lan_global_checkout, e107shop_checkout_details($cart_id));
}

e107shop_display_custom_page_info(e_PAGE, "bottom");

require(FOOTERF);
